package com.atguigu.user.service.impl;

import com.atguigu.ticket.service.ITicketService;
import com.atguigu.user.service.IUserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @author : wenchao.long
 * @date : Created in 2020/12/03 15:41 周四
 * @description :
 */
@Service
public class UserServiceImpl implements IUserService {

    @DubboReference
    ITicketService ticketService;


    @Override
    public void hello() {
        String ticker = ticketService.getTicker();
        System.out.println("买到票了" + ticker);
    }

}
